<div class="content-left">

    <h1>
        <?= $this->img("/images/icons/INV_Bijou_Gold.jpg") ?> 
        <?php if ($this->ownProfile): ?>
            Viewing your profile
        <?php else: ?>
            Profile: <?= $this->user->nickname ?>
        <?php endif; ?>
    </h1>
    
    <p>
    <strong>Nickname:</strong><br/>
    <?= $this->user->nickname ?>
    </p>

    <?php if ($this->ownProfile): ?>
        <div align="center">
        <?= $this->button('Edit Profile', array('controller'=>'profile', 'action'=>'edit')) ?>
        </div>
    <?php endif; ?>
    
</div>

<div class="content-right">
    <h1><?= $this->img("/images/icons/Spell_Holy_Fanaticism.jpg") ?> DKP</h1>
    
    Put dkp info here.
</div>

<div class="content-full">

    <h1><?= $this->img("/images/icons/Spell_Holy_Fanaticism.jpg") ?> Characters</h1>
    
    <?php if ($this->ownProfile): ?>
        <?= $this->button('Add new', array('controller'=>'characters', 'action'=>'create')) ?>
    <?php endif; ?>
    
    <?php if (count($this->characters) > 0) : ?>
    
    <?php foreach ($this->characters as $character) : ?>
    <?php $class = $character->findParentRow('Classes'); ?>
        <div class="profile-character">
            <h2><?= $this->img($class->icon_small) ?> <?= $character->name ?></h2>
            <?= $this->showKeys($character->toArray()); ?>
            <?= $this->showKeys($class->toArray()); ?>
        </div>
    <?php endforeach; ?>
    
    <?php else: ?>
        This profile has no characters.        
    <?php endif; ?>

</div>
 